package com.java.comprehensive.design.behavioral_model.observer_pattern;

/**
 * @Author 窦绍飞
 * @create 2023/2/23
 */
public class Client {
	public static void main(String[] args) {
		SubscriptionSubject subscriptionSubject = new SubscriptionSubject();

		subscriptionSubject.attach(new WeixinUser("孙悟空"));
		subscriptionSubject.attach(new WeixinUser("猪无能"));
		subscriptionSubject.attach(new WeixinUser("沙城"));

		subscriptionSubject.notify("更新数据");

	}
}
